@import '~@/theme.less';
.linkBtn {
    padding: 0;
}
.container {
    margin: 0;
    padding: 0 8px;
}
.salaryContent {
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(237, 237, 237, 1);
}
.titleWrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px 0 24px;
    .leftTitleWrap {
        display: flex;
        align-items: center;
    }
    .rightTitleWrap {
        display: flex;
        align-items: center;
    }
    .title {
        margin-right: 24px;
        color: rgba(0, 0, 0, 0.85);
        font-weight: bold;
        font-size: 16px;
        line-height: 24px;
    }
}
.tableWrap {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
    overflow: auto;
}
.salaryOperationWrap {
    margin-right: 56px;
    margin-left: 56px;
    font-size: 0;
    text-align: center;
    cursor: pointer;
    .salaryOperationBg {
        display: inline-block;
        width: 72px;
        height: 72px;
    }

    .salaryOperationText {
        padding: 0 0 0 0 !important;
        :global {
            .ant-anchor-link-title {
                color: #ffa22d;
                font-weight: 500;
                font-size: 12px;
                line-height: 18px;
            }
        }
    }
    :global {
        .ant-anchor-ink::before {
            background-color: unset;
        }
    }
}
.salaryMainTable {
    flex: 1;
    overflow: auto;
    :global {
        .ant-table-body {
            overflow-x: auto !important;
        }
    }
}
.baseInfoSettingWrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    .baseInfoWrap {
        //display: flex;
        //align-items: center;
        box-sizing: border-box;
        height: 32px;
        margin: 0 10px 10px 0;
        padding: 0 12px 0 16px;
        font-size: 14px;
        line-height: 32px;
        border: 1px solid rgba(0, 0, 0, 0.15);
        border-radius: 4px;
    }
    .baseInfoDisabled {
        padding: 0 16px;
        color: rgba(0, 0, 0, 0.65);
        background: rgba(0, 0, 0, 0.04);
        border: none;
    }
    .baseInfoClose {
        margin-left: 12px;
        color: rgba(0, 0, 0, 0.15);
        font-weight: bold;
        font-size: 18px;
        vertical-align: bottom;
        transform: scale(0.8);
        &:hover {
            color: #ffa22d;
        }
    }

    .addBtn {
        margin: 0 10px 10px 0;
        border: 1px dashed rgba(0, 0, 0, 0.25);
    }
}
.salaryMonthWrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    .salaryMonthDetailWrap {
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        width: 360px;
        height: 460px;
        margin: 0 16px 16px 0;
        padding-bottom: 20px;
        overflow: hidden;
        background: rgba(250, 250, 250, 1);
        border-radius: 8px;

        &:active,
        &:focus,
        &:focus-within {
            box-shadow: 0 1px 6px 0 rgba(0,0,0,0.06);
        }

        .monthHeader {
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 56px;
            padding: 0 16px;
            .monthName {
                color: rgba(51, 51, 51, 1);
                font-weight: bold;
                font-size: 20px;
                line-height: 30px;
            }
            .monthTimePicker {
                display: inline-block;
                margin-left: 20px;
                font-weight: normal;
                background: transparent;
                box-shadow: unset;

                & > * {
                    font-size: 0.7em;
                }
                & * + * {
                    margin-left: 5px;
                }
            }
            .monthOperation {
                display: flex;
                align-items: center;
                .monthOperationBtn {
                    font-size: 12px;
                }
                .monthOperationBtn:first-child {
                    margin-right: 6px;
                }

                .iconBtn {
                    font-size: 20px;
                    line-height: 24px;
                    cursor: pointer;
                    &:hover {
                        color: @orange;
                    }

                    & + .iconBtn {
                        margin-left: 20px;

                        &Larger {
                            margin-left: 10px;
                        }
                    }

                    &Larger {
                        font-size: 24px;
                    }
                }
            }
        }
    }

    @-moz-document url-prefix() {
        .salaryMonthDetailWrap {
            width: 370px;
        }
    }

    .monthContent {
        box-sizing: border-box;
        height: 404px;
        padding: 0 20px 24px;
        overflow-y: auto;
        .itemTitle {
            display: flex;
            align-items: center;
            padding: 24px 0 12px;
            .itemIcon {
                width: 14px;
                height: 14px;
                margin-right: 7px;
            }
            .itemTitleText {
                margin-left: 7px;
                color: rgba(0, 0, 0, 0.65);
                font-weight: 500;
                font-size: 12px;
            }
        }
        .salaryItemList {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            .salaryItemLabelWrap {
                position: relative;
                box-sizing: border-box;
                width: 156px;
                height: 52px;
                padding: 8px 12px;
                color: rgba(0, 0, 0, 0.65);
                font-size: 12px;
                background: rgba(255, 255, 255, 1);
                border: 1px solid rgba(234, 234, 234, 1);
                border-radius: 4px;
                .salaryItemLabel {
                    display: block;
                    overflow: hidden;
                    line-height: 18px;
                    white-space: nowrap;
                    text-overflow: ellipsis;
                    //text-align: center;
                }

                .salaryItemLabelBtnWrap {
                    position: absolute;
                    top: 0;
                    left: 0;
                    z-index: 10;
                    width: 100%;
                    height: 100%;
                    cursor: pointer;
                }

                .delIcon {
                    position: absolute;
                    top: 8px;
                    right: 8px;
                    z-index: 100;
                    width: 8px;
                    height: 8px;

                    &:hover {
                        color: @orange;
                    }
                }
            }
            .salaryItemLabelWrap:nth-child(n) {
                margin-bottom: 8px;
            }
            .dropdownBox {
                padding: 10px;
                .dropdownItem {
                    max-width: 25em;
                    padding: 0 12px;
                    font-size: 12px;
                    line-height: 22px;
                    .dropdownLabel {
                        font-weight: bold;
                    }
                }
            }
        }
    }
    .monthEmpty {
        padding-top: 36px;
        :global {
            .text-btn {
                color: @orange;
                box-shadow: none;
                cursor: pointer;

                &[disabled] {
                    color: unset;
                    cursor: not-allowed;

                    .iconfont {
                        color: unset;
                    }
                }
            }

            .iconfont {
                color: @orange;

                &-larger {
                    display: inline-block;
                    font-size: 1.4em;
                    vertical-align: bottom;
                }
            }
        }
    }
}
.editSalaryMainContainer {
    padding: 32px 8px 8px;
    overflow: hidden;
    background: #fff;
}
.emptyWrap {
    display: flex;
    justify-content: center;
    width: 100%;
    :global {
        .ant-empty-normal {
            margin: 0;
        }
    }
}
.editSalaryMainModalContainer {
    padding: 0 0 0 12px;
    .oldWrap {
        padding-bottom: 20px;
        .oldWrapTitle {
            color: rgba(0, 0, 0, 0.35);
            font-weight: 500;
            font-size: 14px;
            line-height: 22px;
        }
        .oldContentWrap {
            height: 250px;
            overflow-y: auto;
        }
        .oldItemList {
            display: flex;
            flex-wrap: wrap;
            .oldItemLabelWrap {
                display: flex;
                justify-content: space-between;
                box-sizing: border-box;
                width: 160px;
                height: 50px;
                margin-right: 8px;
                margin-bottom: 8px;
                padding: 7px 10px 7px 12px;
                background: #f8f8f8;
                border-radius: 4px;
                .oldItemLabelContent {
                    width: 120px;
                    .oldItemLabel {
                        display: block;
                        overflow: hidden;
                        color: rgba(0, 0, 0, 0.65);
                        font-size: 12px;
                        line-height: 18px;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                        //text-align: center;
                    }
                }
            }
        }
    }
    .newWrap {
        box-sizing: border-box;
        height: 270px;
        margin-bottom: 24px;
        padding: 16px 0 0 16px;
        overflow: hidden;
        background: #fafafa;
        border: 1px solid #eaeaea;
        border-radius: 4px;
        .newWrapTitleWrap {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding-right: 16px;
            .newWrapTitle {
                color: rgba(0, 0, 0, 0.35);
                font-weight: 500;
                font-size: 14px;
            }
            .newSettingBtnWrap {
                display: flex;
                align-items: center;
                .newSettingBtnHit {
                    margin-right: 4px;
                    color: rgba(0, 0, 0, 0.45);
                    font-size: 12px;
                    line-height: 22px;
                }
            }
        }
        .newContentWrap {
            height: 224px;
            overflow-y: auto;
            .newItemList {
                display: flex;
                flex-wrap: wrap;
                .newItemLabelWrap {
                    display: flex;
                    justify-content: space-between;
                    box-sizing: border-box;
                    width: 154px;
                    height: 50px;
                    margin-right: 8px;
                    margin-bottom: 8px;
                    padding: 7px 8px 7px 12px;
                    background: #fff;
                    border: 1px solid #eaeaea;
                    border-radius: 4px;
                    .newItemLabelContent {
                        width: 112px;
                        .newItemLabel {
                            display: block;
                            overflow: hidden;
                            color: rgba(0, 0, 0, 0.65);
                            font-size: 12px;
                            line-height: 18px;
                            white-space: nowrap;
                            text-overflow: ellipsis;
                            //text-align: center;
                        }
                    }
                }
            }
        }
    }
    .itemTitle {
        display: flex;
        align-items: center;
        padding: 20px 0 12px;
    }
    .itemTitleText {
        margin-left: 7px;
        color: rgba(0, 0, 0, 0.65);
        font-weight: 500;
        font-size: 12px;
    }
    .olaItemClose,
    .newItemAdd {
        color: rgba(0, 0, 0, 0.4);
        font-size: 18px;
        &:hover {
            color: #ffa22d;
        }
    }
}
.baseInfoAddModal {
    position: relative;
    :global {
        .ant-modal-footer {
            padding: 0 24px 40px;
            border-top: 0;
        }
    }
    .baseInfoSettingAddBtn {
        position: absolute;
        bottom: 40px;
        left: 24px;
    }
}
.tableBtn {
    padding: 0;
}
.formModal {
    :global {
        .ant-modal-body {
            padding: 32px 72px 8px;
        }
        .ant-modal-footer {
            padding: 0 24px 40px;
            border-top: 0;
        }
    }
}
.editSalaryMainModal {
    :global {
        .ant-modal-footer {
            padding: 0 24px 40px;
            border-top: 0;
        }
    }
}
.salaryTable {
    td {
        position: relative;
    }
    td:hover {
        background: none;
    }
    &:hover td.salaryTableColumns {
        background: none !important;
    }
    .salaryTableColumnsItem {
        position: absolute;
        top: 0;
        left: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        background: #fff;
        &:hover {
            .salaryItemModalWrap {
                display: flex;
                align-items: center;
            }
        }
    }
    .salaryItemModalWrap {
        position: absolute;
        top: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        .salaryItemModalText {
            padding: 3px 0;
            color: rgba(255, 255, 255, 0.85);
            font-size: 14px;
            line-height: 20px;
            cursor: pointer;
        }
        .salaryItemModalTextDisabled {
            color: red;
        }
    }
}
.tableColorRed {
    color: red;
}

body {
    .tooltipClass {
        min-width: auto;
        max-width: 500px;
        padding: 24px 32px;
        white-space: pre;
        box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.06);
        :global {
            .introjs-tooltiptext {
                color: rgba(0, 0, 0, 0.65);
                font-size: 16px;
                line-height: 24px;
            }
            .introjs-skipbutton {
                display: none;
            }
            .introjs-donebutton {
                display: block;
            }
            .introjs-prevbutton {
                display: none;
            }
            .introjs-tooltipbuttons {
                display: flex;
                justify-content: center;
            }
            .introjs-button {
                box-sizing: border-box;
                width: 88px;
                height: 32px;
                margin: 24px 0 0;
                padding: 0;
                color: #fff;
                font-weight: 500;
                font-size: 14px;
                line-height: 32px;
                text-align: center;
                text-shadow: none;
                background: #ffa22d;
                border: none;
                border-radius: 2px;
            }
            .introjs-button:hover {
                box-shadow: none;
            }
        }
    }
}

.dropdownBox {
    max-width: 25em;
    padding: 10px;
    .dropdownItem {
        max-width: 25em;
        padding: 0 12px;
        font-size: 12px;
        line-height: 22px;
        white-space: break-spaces;
        word-break: break-all;
        .dropdownLabel {
            font-weight: bold;
        }
    }
}
